Method, system and recording medium for accessory pairing

ABSTRACT

A method, a system and a recording medium for accessory pairing are provided. The method comprises: determining a type of the accessory based on the identifying information of an accessory; recognizing a type of a user body part according to an image; in response to the accessory is applicable to the user body part according to the type of accessory and the type of the user body part, obtaining a first position of the accessory within an environment and obtaining a second position of the user body part within the environment; and configuring the accessory to pair the user body part according to the first position of the accessory and the second position of the user body part.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims the priority benefit of U.S. provisionalapplication Ser. No. 63/274,963, filed on Nov. 3, 2021. The entirety ofthe above-mentioned patent application is hereby incorporated byreference herein and made a part of this specification.

BACKGROUND Technical Field

The invention relates to a method and a system for virtual reality, andparticularly relates to a method, a system and a recording medium foraccessory pairing.

Description of Related Art

Virtual reality (VR) is an immersive technology that uses computersimulation technology to generate a virtual world in a three-dimensional(3D) space. A virtual reality system is usually compatible with severalaccessories, such as controllers, sensors or speakers, to detect user'smotion or create an immersive environment. The virtual reality systemincludes a head-mounted display and a computing device. The computingdevice is coupled to the head-mounted display and communicates with theaccessory. The computing device may collect data from the accessory, andenable the user to interact with virtual objects in the virtual worldbased on the collect data.

For a wearable or handheld accessory, if the accessory itself does notinitially be set to associate with a specific body part (e.g. left handor right hand), it is usually necessary to manually set the accessory tobe associated with the body part which operates the accessory by theuser. On the other hand, if the accessory is initially set to associatewith the specific body part but the user wears it on the wrong position,it is necessary to change the wearing position of the accessory by theuser. However, for some accessories that need to be fixed (with a wriststrap or devil felt), it is especially inconvenient to change thewearing position.

SUMMARY

The application is directed to a method, a system and a recording mediumfor accessory pairing, which detects a position of an accessory and aposition of a user body part for the accessory to pair the user bodypart, so as to improve the convenience of accessory setting.

The application provides an accessory pairing method. The methodcomprises: determining a type of the accessory based on the identifyinginformation of an accessory; recognizing a type of a user body partaccording to an image; in response to the accessory is applicable to theuser body part according to the type of accessory and the type of theuser body part, obtaining a first position of the accessory within anenvironment and obtaining a second position of the user body part withinthe environment; and configuring the accessory to pair the user bodypart according to the first position of the accessory and the secondposition of the user body part.

In an embodiment of the application, the step of determining the type ofthe accessory based on the identifying information comprises: obtainingan accessory type information from the identifying information of theaccessory, wherein the accessory type information indicates a functionof the accessory; and determining the type of the accessory based on theaccessory type information.

In an embodiment of the application, the step of recognizing the type ofthe user body part in the image comprises: performing an imagerecognition on the image to recognize the type of the user body part inthe image.

In an embodiment of the application, the method further comprises:defining a candidate area of the user body part corresponding to a userin the image; and defining a reference point to indicate a location ofthe user body part within the environment based on the candidate area.

In an embodiment of the application, the method further comprises:converting coordinates of the reference point in the image into thelocation of the user body part within the environment.

In an embodiment of the application, the first position of the accessorycomprises at least one of a location of the accessory and an orientationof the accessory, and the second position of the user body partcomprises at least one of a location of the user lime and an orientationof the user body part.

In an embodiment of the application, the preset condition indicates atleast one of a relative location relation and a relative orientationrelation between the accessory and the user body part.

In an embodiment of the application, after the step of obtaining thefirst position of the accessory within the environment and obtaining thesecond position of the user body part within the environment, the methodfurther comprises: calculating a distance between the location of theaccessory and the location of the user body part.

In an embodiment of the application, after the step of obtaining thefirst position of the accessory within the environment and obtaining thesecond position of the user body part within the environment the methodfurther comprises: calculating a relative angle between the orientationof the accessory and the orientation of the user body part between theaccessory and the user body part.

The application provides a display system for accessory pairing,comprising a head-mounted display (HMD), at least one accessory, and acomputing device. The computing device is coupled to the HMD and theaccessory. The computing device is configured to determine a type of theaccessory based on the identifying information of the accessory. Thecomputing device is configured to recognize a type of a user body partaccording to an image. In response to the accessory is applicable to theuser body part according to the type of accessory and the type of theuser body part, the computing device is configured to obtain a firstposition of the accessory within an environment and obtaining a secondposition of the user body part within the environment. The computingdevice is configured to configure the accessory to pair the user bodypart.

In an embodiment of the application, the computing device is configuredto obtain an accessory type information from the identifying informationof the accessory, wherein the accessory type information indicates afunction of the accessory. The computing device is configured todetermine the type of the accessory based on the accessory typeinformation.

In an embodiment of the application, the computing device is configuredto perform an image recognition on the image to recognize the type ofthe user body part in the image.

In an embodiment of the application, the computing device is configuredto define a candidate area of the user body part corresponding to a userin the image. The computing device is configured to define a referencepoint to indicate a location of the user body part within theenvironment based on the candidate area.

In an embodiment of the application, the computing device is configuredto convert coordinates of the reference point in the image into thelocation of the user body part within the environment.

In an embodiment of the application, the display system furthercomprises an image capturing device, coupled to the computing device,wherein the image capturing is configured to capture the image andtransmit the image to the computing device.

In an embodiment of the application, the first position of the accessorycomprises at least one of a location of the accessory and an orientationof the accessory, and the second position of the user body partcomprises at least one of a location of the user lime and an orientationof the user body part.

In an embodiment of the application, the preset condition indicates atleast one of a relative location relation and a relative orientationrelation between the accessory and the user body part.

In an embodiment of the application, after obtaining the first positionof the accessory within the environment and obtaining the secondposition of the user body part within the environment, the computingdevice is configured to calculate a distance between the location of theaccessory and the location of the user body part.

In an embodiment of the application, after obtaining the first positionof the accessory within the environment and obtaining the secondposition of the user body part within the environment, the computingdevice is configured to calculate a relative angle between theorientation of the accessory and the orientation of the user body partbetween the accessory and the user body part.

The application provides a non-transitory computer-readable recordingmedium, configured to record a program, wherein the program is loaded bya processor in a computing device to execute following steps:determining a type of the accessory based on the identifying informationof an accessory; recognizing a type of a user body part according to animage; in response to the accessory is applicable to the user body partaccording to the type of accessory and the type of the user body part,obtaining a first position of the accessory within an environment andobtaining a second position of the user body part within theenvironment; and configuring the accessory to pair the user body partaccording to the first position of the accessory and the second positionof the user body part.

To make the aforementioned more comprehensible, several embodimentsaccompanied with drawings are described in detail as follows.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings are included to provide a furtherunderstanding of the disclosure, and are incorporated in and constitutea part of this specification. The drawings illustrate exemplaryembodiments of the disclosure and, together with the description, serveto explain the principles of the disclosure.

FIG. 1 is a block diagram of a display system for accessory pairingaccording to an embodiment of the application.

FIG. 2 is a flowchart illustrating a method for accessory pairingaccording to an embodiment of the application.

FIG. 3 illustrates an example of a user wearing a head-mounted displayand a controller according to an embodiment of the application.

FIG. 4 illustrates an example of detecting a user body part in an imageaccording to an embodiment of the application.

To make the above features and advantages of the application morecomprehensible, several embodiments accompanied with drawings aredescribed in detail as follows.

DESCRIPTION OF THE EMBODIMENTS

Some embodiments of the disclosure will now be described more fullyhereinafter with reference to the accompanying drawings, in which some,but not all embodiments of the application are shown. Indeed, variousembodiments of the disclosure may be embodied in many different formsand should not be construed as limited to the embodiments set for theherein; rather, these embodiments are provided so that this disclosurewill satisfy applicable legal requirements.

FIG. 1 is a block diagram of a display system for accessory pairingaccording to an embodiment of the application. Referring to FIG. 1 , adisplay system 100 of the present embodiment includes a computing device110, a head-mounted display (HMD) 120, an image capturing device 130 andan accessory 140, and functions thereof are respectively describedbelow.

The computing device 110 may be, for example, a server (e.g. a fileserver, a database server, or an application server), a workstation, apersonal computer or a laptop with computing capability and includes aprocessor. The processor is, for example, a central processing unit(CPU), a graphics processing unit (GPU) or any other programmablemicroprocessor for general or special use, a digital signal processor(DSP), a programmable controller, an application specific integratedcircuit (ASIC), a programmable logic device (PLD) or other similardevices, or a combination of these devices.

The HMD 120 is, for example, a liquid-crystal display (LCD), alight-emitting diode (LED) display or other suitable type of display,which is manufactured in a helmet or an eyeglass form for a user to wearon the head. In the present embodiment, the HMD 120 is coupled to thecomputing device 110. In an embodiment, the display system 100 mayfurther include at least one locator (not illustrated) which locates aposition of the user wearing the HMD 120 within the environment andtrack the moving position of the user. The locator includes, forexample, a laser or an infrared (IR) emitter and receiver, which isadopted to detect a distance of an object in the 3D space, and incollaboration with a plurality of calibrators configured on the object(e.g. the HMD 120), a position of the object in the 3D space can belocated. However, the display system 100 may use other positioningtechnology to locate the HMD 120 and other objects in the environment.

It should be mentioned that in an embodiment, the computing device 110is disposed separately from the HMD 120, and coupled to the HMD 120 in awired or a wireless manner for data transmission. In another embodiment,the computing device 110 can also be integrated in the HMD 120, and isconnected with the HMD 120 through a transmission line for datatransmission, which is not limited by the application.

The image capturing device 130 is coupled to the computing device 110.The image capturing device 130 is, for example, a camera equipped with acharge coupled device (CCD) lens, a complementary metal-oxidesemiconductor (CMOS) lens, an infrared lens, or other kinds of lens.Alternatively, the image capturing device 130 may be a camera with adepth information function such as a depth camera or a stereoscopiccamera, which is not limited by the application. It should be mentionedthat in an embodiment, the image capturing device 130 may be disposedseparately from the HMD 120 or integrated in the HMD 120, which is notlimited by the application.

The display system 100 is compatible with several different accessories.Each of the accessories may have different functions and generatedifferent input and output data related to the display system 100. Forexample, the accessory 140 would be an input device such as a handheldcontroller or a wrist controller equipped with a motion sensor and aninfrared (IR) light source (e.g. infrared LED), a mouse, a joystick, atrackball, a touch pad, and/or button that permits the user to interactwith environment, objects, or avatars in the virtual world. In anotherembodiment, the accessory 140 would be a locator that can detect anobject in a three-dimensional (3D) space and locate a position of theobject in the 3D space with the use of calibrators disposed on theobject (e.g., the HMD 120). Detail steps of the method for accessoryparing of the application are described below.

FIG. 2 is a flowchart illustrating a method for accessory pairingaccording to an embodiment of the application. Referring to FIG. 2 , themethod of the present embodiment is adapted to the display system 100 ofFIG. 1 , detailed steps of the method for accessory pairing of theapplication are described below with reference of various components ofthe display system 100.

First, the computing device 110 receives an identifying information fromthe accessory 140. The computing device 110 determines a type of theaccessory 140 based on the identifying information of the accessory 140(step S202). In an embodiment, the computing device 110 obtains anaccessory type identification from the identifying information of eachaccessory. The accessory type identifying information can indicatefunctions of corresponding accessory, so that the accessory withdifferent functions will have different accessory type identification.The computer device 110 can determine the type of the accessory based onthe accessory type information. In an embodiment, the identifyinginformation can be transmitted in a standard packet format of Bluetoothprotocol or Bluetooth low energy (BLE) protocol from the accessory 140to the computing device 110, which is not limited by the application.

Back to the flowchart in FIG. 2 , the computing device 110 receives animage. The computing device 110 recognizes a type of a user body partaccording to the image (step S204). The image capturing device 130 cancapture images of the user's surroundings. In an embodiment, since theimage capturing device 130 can be integrated in the HMD 120 worn by theuser, the image capturing device 130 captures the images of a field ofview (FOV) of the user. In another embodiment, the image capturingdevice 130 may capture the images of the user if the image capturingdevice 130 is disposed separately from the HMD 120. The captured imagescan be transmitted from the image capturing device 130 to the computingdevice 110.

The user body part may be a hand, a leg, a head or other body part ofthe user body. In an embodiment, the computing device 110 can detectand/or track a user body part image corresponding to the user body partin the received images. Specifically, the computing device 110 readscontinuous image in an image stream, and detects and tracks a candidatearea in the image corresponding to the user body part. The computingdevice 110 can perform image recognition on the image to define thecandidate area corresponding to the user body part in the image andrecognize the type of the user body part in the image. The imagerecognition can be performed by trained deep learning models, neuralnetwork models or similar artificial intelligence models. For example,the deep learning model is implemented by a learning network such as aconvolution neural network (CNN), which is not limited by theapplication.

For example, FIG. 3 illustrates an example of a user wearing ahead-mounted display and a controller according to an embodiment of theapplication. FIG. 4 illustrates an example of detecting a user body partin an image according to an embodiment of the application. Referring toFIG. 3 , a user 32 in a real-world environment wears an HMD 34 on thehead and a wrist controller 38 on the right hand. The user 32 wears theHMD 34 having an image capturing device 36 with a field of view withinboundaries 311-314. In this embodiment, when a connection is establishedbetween the wrist controller 38 and the computing device 110 of thedisplay system, the computing device 110 can collect an identifyinginformation from the wrist controller 38 and determines a type of thewrist controller 38 based on the identifying information. In this case,the computing device 110 can determine the type “wrist controller”corresponding to the wrist controller 38 according to the identifyinginformation of the wrist controller 38.

In this embodiment, a scene 320 includes the wrist controller 38 and aright hand of the user 32, and the image capturing device 36 can capturethe image corresponding to the scene 320. As shown in FIG. 4 , an imageVR is used as an example for detailed description. The image VR is theimage which can be captured by the image capturing device 36, and theimage VR can be displayed to the user 32 as a virtual reality image. Inthis embodiment, the image VR includes a hand image 40 and a wristcontroller image 50. After detecting the hand image 40 of the hand inthe image VR, the computing device 110 may define a candidate areacorresponding to the hand image 40 and define a reference point toindicate a location of the user body part, such as the right hand of theuser 32, based on the candidate area. The reference point can be acenter point of the candidate area, a center point of an upper boundaryof the candidate area or any point in the candidate area, which is notlimited by the application. As shown in FIG. 4 , the computing device110 may define the bounding box as the candidate area, and the size ofthe candidate area is at least large enough to enclose the user bodypart corresponding to the candidate area. The computing device 110 canset the candidate area 41 to be associated with the hand image 40, andsets the center point of the candidate area 41 as the reference point P1to indicate the location of the right hand of the user 32.

In addition, the computing device 110 would recognize the type of thehand image 40, and would sets the type to be associated with thecandidate area 41. For example, in this embodiment, the computing device110 may recognize the hand image 40 corresponding to the candidate area41 and obtain the type “right hand” corresponding to the hand image 40.

Back to the flowchart in FIG. 2 , the computing device 110 determineswhether the accessory is a candidate device which matches the user bodypart in the image based on the type of the accessory and the type of theuser body part. Concretely, the computing device 110 determines whetherthe accessory is applicable to the user body part according to the typeof accessory and the type of the user body part (step S206). When theaccessory is not applicable to the user body part, the procedure wouldreturn to step S204 such that the computing device 110 would continue toreceive the image from the image capturing device 130. In detail, aplurality of types of the accessory and the type of the user body partcorresponding to each type of the accessory are stored in a memory (notillustrated) in the display system 100. The computing device 110 candetermine whether the accessory is the candidate device through thecorresponding relation between the type of the accessory and the type ofthe user body part.

For example, the computing device 110 may establish a look-up table, anda plurality of types of the accessory and the corresponding types of theuser body part are recorded in the look-up table. The look-up table canbe stored in the memory in the display system 100. Table 1 below is anexample of the look-up table in an exemplary embodiment, which is usedto record the corresponding relation between the type of the accessoryand the type of the user body part.

TABLE 1 accessory user body part wrist controller left hand right handhandheld controller left hand right hand

On the other hand, the accessory is determined to be the candidatedevice when the accessory is applicable to the user body part.Concretely, in response to the accessory is applicable to the user bodypart according to the type of accessory and the type of the user bodypart, the computing device 110 obtains a first position of the accessory140 within an environment and obtains a second position of the user bodypart within the environment (step S208). For example, according to FIG.3 , FIG. 4 and Table 1, the computing device 110 can input the type“wrist controller” corresponding to the wrist controller 38 and the type“right hand” corresponding to the hand image 40 to Table 1, anddetermine whether the wrist controller 38 is the candidate device whichmatches the hand image 40. In Table 1, the type “wrist controller” isrecorded to be related to the type “right hand”. Therefore, thecomputing device 110 would determine the wrist controller 38 and thehand image 40 have the corresponding relation, and set the wristcontroller 38 to be the candidate device.

In one embodiment, the first position of the accessory 140 may include alocation of the accessory 140 within the environment. For example, thelocation of the accessory 140 within the environment may be obtained bythe computing device 110 based on a spatial relationship between theimage capturing device 130 and the accessory 140. The image capturingdevice 130 may detect the infrared light emitted from the accessory 140,and the computing device 110 can calculate the location of the accessory140 within the environment based on the infrared light obtained by theimage capturing device 130, the location of the image capturing device130, extrinsic parameters of the image capturing device 130, intrinsicparameters of the image capturing device 130 and/or other information.The location of the accessory may be a relative position related to aspecific device (e.g. the image capturing device 130 or the HMD 120) oran absolute position corresponding to a coordinate system in the 3Dspace.

In another embodiment, the first position of the accessory 140 mayfurther include an orientation of the accessory. For example, theorientation of the accessory 140 within the environment may be obtainedby using an accelerometer. The location of the accessory 140 within theenvironment and the orientation of the accessory 140 may further beobtained based on information received by one or more additional sensorcomponents (not illustrated), such as other positional sensors (e.g.motion sensors, GPS sensors, etc.) and/or orientation sensors (e.g.gyroscope, etc.) which can track the position and/or the orientation ofthe accessory 140.

In one embodiment, the second position of the user body part may includea location of the user body part within the environment and/or anorientation of the user body part. For example, the location of the userbody part within the environment may be obtain by the computing device110 based on a spatial relationship between the HMD 120 and the userbody part. As mentioned above, the computing device 110 can performimage recognition on the image captured by the image capturing device130, so as to define the reference point of the user body part in theimage. In this embodiment, the computing device 110 can further convertthe coordinates of the reference point in the image into the locationwithin the environment.

In addition, the computing device 110 can perform image recognition onthe image captured by the image capturing device 130, so as to determinethe orientation of the user body part. It should be mentioned that in anembodiment, the location and the orientation may be a relative positionrelated to a specific device (e.g. the HMD 120) or an absolute positioncorresponding to a coordinate system in the 3D space.

In another embodiment, the second position of the user body part withinthe environment may further be obtained based on skeleton information orother information received by one or more additional sensor components,which is not limited by the application. In detail, the computing device110 can perform skeleton detection or other user body part recognitionmethod on the received image to detect the skeleton information of theuser, and define the candidate area of the user body part in the imagebased on the skeleton information. Then, the computing device 110 canfurther convert the coordinates of the candidate area in the image intothe location of the user body part within the environment. Also, thecomputing device 110 can calculate the orientation of the user body partbased on the skeleton information and inverse kinematics (IK).

Finally, the computing device 110 determines whether a relative positionrelation between the first position and the second position conforms apreset condition (step S210). In response to the relative positionrelation determined to be not conforming the preset condition, theprocedure would return to step S204 such that the computing device 110would continue to receive the image from the image capturing device 130.

On the other hand, in response to the relative position relationdetermined to be conforming the preset condition, the computing device110 configures the accessory 140 to pair the user body part according tothe first position of the accessory and the second position of the userbody part (step S212). Here, the preset condition may indicate, forexample, relative location relation and/or relative orientation relationbetween the accessory 140 and the user body part. However, the conditionto be conformed by the relative position relation is not limitedthereto. In detail, the computing device 110 may calculate a distancebetween the location of the accessory 140 and the location of the userbody part to determine the relative location relation, and determinewhether the relative location relation conforms the preset condition.However, the preset condition may be a distance or a distance rangebetween the accessory 140 and the user body part.

In an embodiment, assume that the preset condition includes “thelocation of the wrist controller is 10 cm behind the right hand” and/or“the orientation of the wrist controller is the same as the orientationof the right hand”. Referring to FIG. 3 and FIG. 4 , the reference pointP1 represents the location of the hand image 40 corresponding to theright hand of the user 32 and the reference point P2 represents thelocation of the wrist controller 38. The computing device 110 wouldcalculate a distance between the reference point P1 and reference pointP2 to determine the relative location relation between the referencepoint P1 and reference point P2, and determine whether the relativelocation relation conforms the preset condition. As shown in FIGS. 3 and4 , the distance between the reference point P1 and the reference pointP2 is distance d1. Assume the distance d1 is 10 cm. According, therelative location relation can be determined to be conforming the presetcondition in this embodiment, the computing device 110 can pair thewrist controller 38 to the right hand of the user 32.

In another embodiment, the relative orientation is further considered.The computing device 110 can calculate a relative angle between theorientation of the accessory and the orientation of the user body partbetween the accessory and the user body part. Concretely, the computingdevice 110 calculates a relative angle between the orientation of theaccessory and the orientation of the user to determine the relativeorientation between the accessory and the user body part, and determineswhether the relative orientation conforms the preset condition. However,the preset condition may be a relative angle or a relative angle rangebetween the accessory 140 and the user body part.

As shown in FIGS. 3 and 4 , the computing device 110 can calculate arelative angle to determine the relative orientation between the handimage 40 corresponding to the right hand of the user 32 and the wristcontroller 38, and determine whether the right hand of the user 32 andthe wrist controller 38 have the same orientation. Assuming bothorientation of the wrist controller 38 and the right hand of the user 32are in a first direction D1, the computing device 110 can pair the wristcontroller 38 to the right hand of the user 32.

The disclosure is further directed to a non-transitory computer-readablerecording medium configured to record a program which is loaded by aprocessor in a computing device 110 to execute each step of the methodfor accessory pairing. The computer program is composed of a pluralityof program sections (for example, building an organization diagramprogram section, approving a list program section, setting a programsection, and deploying a program section, etc.). After the programsections are loaded in the computing device 110 and executed, the stepsof the method for accessory pairing can be completed.

In view of the aforementioned descriptions, the proposed method, thesystem and the computer-readable recording medium for accessory pairingallow pairing the accessory and the user body part based on the type andthe position of the accessory and the user body part. Based onidentification results of the image tracking or the skeleton trackingcorresponding to the position where the accessory is worn andpositioning information of the accessory, it is inferred which body partthe accessory is worn on. Then, the accessory can be paired to the bodypart where it is worn on. Thus, it does not require the user to set thepairing body part associated to each accessory, so as to improve theconvenience and the flexibility of accessory setting.

It will be apparent to those skilled in the art that variousmodifications and variations can be made to the disclosed embodimentswithout departing from the scope or spirit of the disclosure. In view ofthe foregoing, it is intended that the disclosure covers modificationsand variations provided that they fall within the scope of the followingclaims and their equivalents.

What is claimed is:
 1. An accessory pairing method, comprising:determining a type of the accessory based on the identifying informationof an accessory; recognizing a type of a user body part according to animage; in response to the accessory is applicable to the user body partaccording to the type of accessory and the type of the user body part,obtaining a first position of the accessory within an environment andobtaining a second position of the user body part within theenvironment; and configuring the accessory to pair the user body partaccording to the first position of the accessory and the second positionof the user body part.
 2. The method according to claim 1, wherein thestep of determining the type of the accessory based on the identifyinginformation comprises: obtaining an accessory type information from theidentifying information of the accessory, wherein the accessory typeinformation indicates a function of the accessory; and determining thetype of the accessory based on the accessory type information.
 3. Themethod according to claim 1, wherein the step of recognizing the type ofthe user body part in the image comprises: performing an imagerecognition on the image to recognize the type of the user body part inthe image.
 4. The method according to claim 1, further comprises:defining a candidate area of the user body part corresponding to a userin the image; and defining a reference point to indicate a location ofthe user body part within the environment based on the candidate area.5. The method according to claim 4, further comprises: convertingcoordinates of the reference point in the image into the location of theuser body part within the environment.
 6. The method according to claim1, wherein the first position of the accessory comprises at least one ofa location of the accessory and an orientation of the accessory, and thesecond position of the user body part comprises at least one of alocation of the user lime and an orientation of the user body part. 7.The method according to claim 6, wherein after the step of obtaining thefirst position of the accessory within the environment and obtaining thesecond position of the user body part within the environment, furthercomprises: calculating a distance between the location of the accessoryand the location of the user body part.
 8. The method according to claim6, wherein after the step of obtaining the first position of theaccessory within the environment and obtaining the second position ofthe user body part within the environment, further comprises:calculating a relative angle between the orientation of the accessoryand the orientation of the user body part between the accessory and theuser body part.
 9. A display system for accessory pairing, comprising: ahead-mounted display (HMD); at least one accessory; and a computingdevice, coupled to the HMD and the accessory, wherein the computingdevice is configured to determine a type of the accessory based on theidentifying information of the accessory, the computing device isconfigured to recognize a type of a user body part according to animage, in response to the accessory is applicable to the user body partaccording to the type of accessory and the type of the user body part,the computing device is configured to obtain a first position of theaccessory within an environment and obtaining a second position of theuser body part within the environment, and the computing device isconfigured to configure the accessory to pair the user body partaccording to the first position of the accessory and the second positionof the user body part.
 10. The display system according to claim 9,wherein the computing device is configured to obtain an accessory typeinformation from the identifying information of the accessory, whereinthe accessory type information indicates a function of the accessory,and the computing device is configured to determine the type of theaccessory based on the accessory type information.
 11. The displaysystem according to claim 9, wherein the computing device is configuredto perform an image recognition on the image to recognize the type ofthe user body part in the image.
 12. The display system according toclaim 9, wherein the computing device is configured to define acandidate area of the user body part corresponding to a user in theimage, and the computing device is configured to define a referencepoint to indicate a location of the user body part within theenvironment based on the candidate area.
 13. The display systemaccording to claim 12, wherein the computing device is configured toconvert coordinates of the reference point in the image into thelocation of the user body part within the environment.
 14. The displaysystem according to claim 9, wherein the display system furthercomprises an image capturing device, coupled to the computing device,wherein the image capturing is configured to capture the image andtransmit the image to the computing device.
 15. The display systemaccording to claim 9, wherein the first position of the accessorycomprises at least one of a location of the accessory and an orientationof the accessory, and the second position of the user body partcomprises at least one of a location of the user lime and an orientationof the user body part.
 16. The display system according to claim 15,wherein after obtaining the first position of the accessory within theenvironment and obtaining the second position of the user body partwithin the environment, the computing device is further configured tocalculate a distance between the location of the accessory and thelocation of the user body part.
 17. The display system according toclaim 15, wherein after obtaining the first position of the accessorywithin the environment and obtaining the second position of the userbody part within the environment, the computing device is furtherconfigured to calculate a relative angle between the orientation of theaccessory and the orientation of the user body part between theaccessory and the user body part.
 18. A non-transitory computer-readablerecording medium, configured to record a program, wherein the program isloaded by a processor in a computing device to execute following steps:determining a type of the accessory based on the identifying informationof an accessory; recognizing a type of a user body part according to animage; in response to the accessory is applicable to the user body partaccording to the type of accessory and the type of the user body part,obtaining a first position of the accessory within an environment andobtaining a second position of the user body part within theenvironment; and configuring the accessory to pair the user body partaccording to the first position of the accessory and the second positionof the user body part.